<?php
$this->load->view("header");
?>
<div id="main_content">
<div class="titlebar"><?= $title;?></div>
<!--The following table is for detailed book information-->
<?php
$this->load->view("bookdetail");
?>
<?php
if(isset($error)){
?>
  <font color="red" size="4"><?=$error?></font>
<?php
} ?>
 <form name="addsalepost_form" id="addsalepost_form"  method="post" action="<?=site_url()?>/post/do_addsalepost">
        价格:<input type=text name="price" />
        成色：
       <select name="quality">
         <option value="4" >全新</option>
         <option value="3" selected="selected">基本全新</option>
         <option value="2">半新</option>
         <option value="1">较旧</option>
       </select>
        备注:<input type=text name="other"/>
        <br/>
        手机:<input type=text name="phone" value="<?=$userinfo->phone?>" />
         电子邮件:<input type=text name="email" value="<?=$userinfo->email?>" />
         QQ:<input type=text name="qq" value="<?=$userinfo->qq?>" />
        <input type="hidden" name="book_title" value="<?=$book->title?>"/>
        <input type="hidden" name="bookid" value="<?=$book->id?>"/>
        <input type="hidden" name="school_initials" value="<?=$userinfo->school_initials?>"/>
        <input type=submit  value="发布信息" />
 </form>

<?php
$this->load->view("footer");
?>